/*
day446 
2020.11.16 
*/

#include<iostream>
#include<vector>
using namespace std;

class Solution {
public:
    int addDigits(int num) {
		return (num - 1) % 9 + 1;
    }
};


int main()
{
	return 0;
 } 
